<!DOCTYPE html>
<html lang="en" xmlns:sec="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>留言板</title>
  <style>
    .media-object{
      width: 64px;
      height: 64px;
      float: left;
    }

    .huifu{
      clear: both;
      border: 0;
      float: right;
      position: relative;
      top:-22px;
    }
    .media{
      border-bottom: solid 1px;
    }
    .a1{
      width:100%;
      height: 100px;
    }
    textarea{
      width: 100%;
      height: 100px;
      resize: none;
    }
    .pinglun{
      clear: both;
      border:0;
      float: right;
      position: relative;
      top:-26px;
      background-color: blue;
      color: white;
      width: 50px;
      height: 20px;
    }
  </style>
  <link th:href="@{/assets/dist/css/bootstrap.min.css}" rel="stylesheet">
  <link th:href="@{/assets/dist/css/bootstrap.rtl.min.css}" rel="stylesheet">
</head>
<body>
<script type="text/jscript">

        function show(){
        //显示div
         document.getElementById("form1").style.display="block";
        //隐藏
        document.getElementByID("form1").style.display="none";

 var obj={
 pinglun:'',
 pinglun1:'',
 pinglun2:''
 }

         document.getElementById("pinglun").value = obj.pinglun
         document.getElementById("pinglun1").value = obj.pinglun1
         document.getElementById("pinglun2").value = obj.pinglun2
         }

         function save(){
            alert(document.getElementById("pinglun").value)
         }
         function save(){
            alert(document.getElementById("pinglun1").value)
         }
         function save(){
            alert(document.getElementById("pinglun2").value)
         }
        </script>
<div class="box">
  <form class="layui-form" id="addblogForm" th:action="@{/saveBlog}" th:object="${bloginfo}" method="post">
      <input type="hidden" th:field="${bloginfo.bloginfoId}">
  <div class="a1">
    <textarea placeholder="请输入评论..." th:field="${bloginfo.content}"></textarea>
      <div class="col-md-1" style="text-align: right"><b th:each="Buser:${allUser}" >
          用户:<td  th:text="${Buser.userName}"></td>
          内容:<td th:text="${bloginfo.content}"></td>
      </b></div>
<!--      <div class="col-md-8" style="text-align: justify;"><b ></b>-->
<!--          内容:<td th:text="${bloginfo.content}"></td>-->
<!--      </div>-->
    <div><button class="pinglun" type="submit">评论</button></div>
  </div>
  </form>
  </div>
<div>



    </td>
</div>


</body>
</html>